﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DetopManager.aspx.cs" Inherits="Stock_DetopManager" %>
<%@ Import Namespace="WX.WMS.DataModel" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>仓库库位信息维护</title>
 <style type="text/css">
    body,td,th {
	font-size: 12px;
}
    
    </style>
        <style type="text/css">
<!--

.lbg2 {
	BACKGROUND-IMAGE: url(../images/line.gif); BACKGROUND-REPEAT: repeat-x
}
.mc {
	PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; WORD-BREAK: break-all; LINE-HEIGHT: 20px; PADDING-TOP: 0px
}
.t3 {
	FONT-WEIGHT: bolder; FONT-SIZE: 12px; MARGIN-LEFT: 15px; COLOR: #003473; margin-down: -20px
}
.mc1 {	PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; WORD-BREAK: break-all; LINE-HEIGHT: 20px; PADDING-TOP: 0px
}
-->
</style>
</head>
<body>
    <form id="form1" runat="server">
    <div style="margin:0 auto; text-align:center;">
        <table style="width: 862px; height: 193px">
            <tr>

                <td style=" height: 105px">
                    <div style="border-right: #a4d5e3 1px solid; border-top: #a4d5e3 1px solid; background: url(../images/content_bg1.gif) repeat-x 50% bottom;
                        float: left; margin-bottom: 8px; border-left: #a4d5e3 1px solid; width: 777px;
                        border-bottom: #a4d5e3 1px solid;">
                        <h2 style="padding-right: 0px; padding-left: 8px; font-size: 14px; background: #e2f3fa;
                            padding-bottom: 0px; margin: 0px; color: #0066a9; line-height: 24px; padding-top: 0px;
                            border-bottom: #a4d5e3 1px solid">
                            库区添加/修改</h2>
                        <div style="margin: 5px">
                            <table style="width: 705px; height: 46px">
                                <tr>
                                    <td style="width: 13%; height: 45px">
                                        库位</td>
                                    <td style="width: 21%; height: 45px">
                                        <asp:DropDownList ID="StoreHouse" DataTextField="STOCK_NAME" DataValueField="STOCK_ID" runat="server">
                                        </asp:DropDownList></td>
                                    <td style="width: 16%; height: 45px">
                                        区位名称</td>
                                    <td style="width: 41%; height: 45px">
                                       <asp:TextBox ID="AreaName" runat="server" Width="103px"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="AreaName"
                                            ErrorMessage="<img src=../images/false.gif  />不能为空"></asp:RequiredFieldValidator></td>
                                    <td style="width: 36%; height: 45px">
                                        &nbsp;<asp:Button ID="updateButton" runat="server" OnClick="updateButton_Click" Text="新  添"
                                            Width="87px" /></td>
                                </tr>
                                </table>
                        </div>
                    </div>

                  <asp:GridView ID="SearchResult" runat="server" AutoGenerateColumns="False" 
            BackColor="White" AllowPaging="True"
            BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
            Width="777" DataKeyNames="AREA_ID" 
                         onpageindexchanging="SearchResult_PageIndexChanging"  >
            <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
            <Columns>
                             <asp:TemplateField HeaderText="库位" SortExpression="T_STOCK.STOCK_NAME">
                 <ItemTemplate>
                 <%# ((WX.WMS.DataModel.T_STOCK_AREA)Container.DataItem).T_STOCK.STOCK_NAME%>
                 </ItemTemplate>                 
                 </asp:TemplateField>
                <asp:BoundField DataField="AREA_NAME" HeaderText="区位" SortExpression="AREA_NAME" />
                <asp:HyperLinkField DataNavigateUrlFields="AREA_ID" DataNavigateUrlFormatString="DetopManager.aspx?action=edit&amp;ID={0}"
                    HeaderText="编辑" Text="&lt;img border=0 src=../images/Edit.gif /&gt;">
                    <ItemStyle Width="30px" />
                </asp:HyperLinkField>
                <asp:HyperLinkField DataNavigateUrlFields="AREA_ID" DataNavigateUrlFormatString="DetopManager.aspx?action=del&amp;ID={0}"
                    HeaderText="删除" Text="&lt;img border=0 src=../images/Close.gif /&gt;">
                    <ItemStyle Width="30px" />
                </asp:HyperLinkField>
            </Columns>
            <RowStyle BackColor="White" ForeColor="#003399" />
            <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
            <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
            <HeaderStyle BackColor="#E2F3FA" Font-Bold="True" ForeColor="Black" />
        </asp:GridView>   
<%--                    <table bgcolor="#9bc8ff" border="0" cellpadding="0" cellspacing="1" style="width: 775px; height: 199px;">
                        <tbody>
                            <tr>
                                <td bgcolor="#f7fdff" style=" height: 244px;">
                                    <table border="0" cellpadding="0" cellspacing="0" style="width: 772px; height: 182px;">
                                        <tr>
                                            <td class="mc" height="202" valign="top" align="center">
                                                &nbsp;
                                                <table border="0" style="width: 631px; height: 18px;">
                                                    <tr>
                                                        <td style="width: 111px; height: 35px">
                                                            库房</td>
                                                        <td style="width: 424px; height: 35px">
                                                            库区</td>
                                                        <td style="width: 167px; height: 35px">
                                                            状态</td>
                                                              <td style="width: 167px; height: 35px">
                                                            编辑</td>
                                                            <td style="width: 167px; height: 35px">
                                                            删除</td>
                                                    </tr>
                                                    <asp:Repeater ID="listType" runat="server">
                                                        <ItemTemplate>
                                                            <tr>
                                                                <td>
                                                                  <%# Eval("HouseName")%></td>
                                                                <td>
                                                                    <%# Eval("SubareaName")%>
                                                                </td>
                                                                <td>
                                                                    <%# Eval("State")%>
                                                                </td>
                                                                  <td>
                                                                <a href="DetopManager.aspx?action=edit&ID=<%# Eval("ID")%>" > <img src=  "../images/Edit.gif"  border="0" alt="点击编辑"/></a>
                                                                </td>
                                                                
                                                                 <td>
                                                                  <a href="DetopManager.aspx?action=del&ID=<%# Eval("ID")%>" >  <img  alt="" border="0"  src="../images/Delete.gif" /> </a>
                                                                </td>
                                                            </tr>
                                                        </ItemTemplate>
                                                    </asp:Repeater>
                                                </table>
                                                &nbsp;
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </tbody>
                    </table>--%>
                </td>
            </tr>
            <tr>
                <td style="width: 32px">
                </td>
                <td style="width: 498px">
                    &nbsp;</td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>

